package com.ruoyi.system.service.award.competition.impl;

import java.util.List;

import com.ruoyi.system.domain.award.competition.CompetitionAwardWorks;
import com.ruoyi.system.mapper.award.competition.CompetitionAwardWorksMapper;
import com.ruoyi.system.service.award.competition.ICompetitionAwardWorksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 竞赛获奖作品子Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-28
 */
@Service
public class CompetitionAwardWorksServiceImpl implements ICompetitionAwardWorksService
{
    @Autowired
    private CompetitionAwardWorksMapper competitionAwardWorksMapper;

    /**
     * 查询竞赛获奖作品子
     * 
     * @param id 竞赛获奖作品子主键
     * @return 竞赛获奖作品子
     */
    @Override
    public CompetitionAwardWorks selectCompetitionAwardWorksById(Long id)
    {
        return competitionAwardWorksMapper.selectCompetitionAwardWorksById(id);
    }

    /**
     * 查询竞赛获奖作品子列表
     * 
     * @param competitionAwardWorks 竞赛获奖作品子
     * @return 竞赛获奖作品子
     */
    @Override
    public List<CompetitionAwardWorks> selectCompetitionAwardWorksList(CompetitionAwardWorks competitionAwardWorks)
    {
        return competitionAwardWorksMapper.selectCompetitionAwardWorksList(competitionAwardWorks);
    }

    /**
     * 新增竞赛获奖作品子
     * 
     * @param competitionAwardWorks 竞赛获奖作品子
     * @return 结果
     */
    @Override
    public int insertCompetitionAwardWorks(CompetitionAwardWorks competitionAwardWorks)
    {
        return competitionAwardWorksMapper.insertCompetitionAwardWorks(competitionAwardWorks);
    }

    /**
     * 修改竞赛获奖作品子
     * 
     * @param competitionAwardWorks 竞赛获奖作品子
     * @return 结果
     */
    @Override
    public int updateCompetitionAwardWorks(CompetitionAwardWorks competitionAwardWorks)
    {
        return competitionAwardWorksMapper.updateCompetitionAwardWorks(competitionAwardWorks);
    }

    /**
     * 批量删除竞赛获奖作品子
     * 
     * @param ids 需要删除的竞赛获奖作品子主键
     * @return 结果
     */
    @Override
    public int deleteCompetitionAwardWorksByIds(Long[] ids)
    {
        return competitionAwardWorksMapper.deleteCompetitionAwardWorksByIds(ids);
    }

    /**
     * 删除竞赛获奖作品子信息
     * 
     * @param id 竞赛获奖作品子主键
     * @return 结果
     */
    @Override
    public int deleteCompetitionAwardWorksById(Long id)
    {
        return competitionAwardWorksMapper.deleteCompetitionAwardWorksById(id);
    }
}
